package com.atguigu.interview.juc;

/**
 * @Author : Jungle
 * @Description :
 */
public class Test {
    public static void main(String[] args) {
     //   ReentrantLock lock = new ReentrantLock();
     //   CountDownLatch countDownLatch = new CountDownLatch(6);
     //   ReentrantReadWriteLock writeLock = new ReentrantReadWriteLock();
     //   Semaphore semaphore = new Semaphore(10);
     //  List<Object> objects = new ArrayList<>();
     //new HashMap<>().put(1,1);
        StringBuilder b = new StringBuilder("A");
        StringBuilder a = new StringBuilder("B");

       join(b, a);

        System.out.println(a.append(b));
    }

    private static void join(StringBuilder b, StringBuilder a) {
        a = a.append(b);
    }
}
